<template>
    <div class="container">
        
    </div>
</template>

<script>
import { ref, onMounted } from 'vue';
import { showToast, showImagePreview } from 'vant';
function useTest()
{
    onMounted(()=>{
        showImagePreview({
        images: [
            'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
            'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
        ],
        onClose() {
            showToast('关闭');
        },
        });
    });
}
export default {
    //组件使用项目  
    //props: { article:{ type:Object,required:true } },
    //使用组件 
    //components:{ArticleItem },
    setup() {
        useTest();


        return {
          
        };
    },
};
</script>
<style>
.container {
    display: flex;
}
</style>